import request from '@/utils/request'

// 查询伦理审查管理列表
export function listEthicalReviewManagement(query) {
  return request({
    url: '/feedingAreaManagement/ethicalReviewManagement/list',
    method: 'get',
    params: query
  })
}

// 查询伦理审查管理详细
export function getEthicalReviewManagement(ethicalReviewManagementId) {
  return request({
    url: '/feedingAreaManagement/ethicalReviewManagement/' + ethicalReviewManagementId,
    method: 'get'
  })
}

// 新增伦理审查管理
export function addEthicalReviewManagement(data) {
  return request({
    url: '/feedingAreaManagement/ethicalReviewManagement',
    method: 'post',
    data: data
  })
}

// 修改伦理审查管理
export function updateEthicalReviewManagement(data) {
  return request({
    url: '/feedingAreaManagement/ethicalReviewManagement',
    method: 'put',
    data: data
  })
}

// 删除伦理审查管理
export function delEthicalReviewManagement(ethicalReviewManagementId) {
  return request({
    url: '/feedingAreaManagement/ethicalReviewManagement/' + ethicalReviewManagementId,
    method: 'delete'
  })
}
